Optimal. Leaf size=106 \[ -\frac {2 a^2 (5+4 n) \cos (e+f x) \, _2F_1\left (\frac {1}{2},-n;\frac {3}{2};1-\sin (e+f x)\right )}{f (3+2 n) \sqrt {a+a \sin (e+f x)}}-\frac {2 a^2 \cos (e+f x) \sin ^{1+n}(e+f x)}{f (3+2 n) \sqrt {a+a \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 106, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {2842, 21, 2855,
67} \begin {gather*} -\frac {2 a^2 (4 n+5) \cos (e+f x) \, _2F_1\left (\frac {1}{2},-n;\frac {3}{2};1-\sin (e+f x)\right )}{f (2 n+3) \sqrt {a \sin (e+f x)+a}}-\frac {2 a^2 \cos (e+f x) \sin ^{n+1}(e+f x)}{f (2 n+3) \sqrt {a \sin (e+f x)+a}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 67
Rule 2842
Rule 2855
Rubi steps
\begin {align*} \int \sin ^n(e+f x) (a+a \sin (e+f x))^{3/2} \, dx &=-\frac {2 a^2 \cos (e+f x) \sin ^{1+n}(e+f x)}{f (3+2 n) \sqrt {a+a \sin (e+f x)}}+\frac {2 \int \frac {\sin ^n(e+f x) \left (\frac {1}{2} a^2 (5+4 n)+\frac {1}{2} a^2 (5+4 n) \sin (e+f x)\right )}{\sqrt {a+a \sin (e+f x)}} \, dx}{3+2 n}\\ &=-\frac {2 a^2 \cos (e+f x) \sin ^{1+n}(e+f x)}{f (3+2 n) \sqrt {a+a \sin (e+f x)}}+\frac {(a (5+4 n)) \int \sin ^n(e+f x) \sqrt {a+a \sin (e+f x)} \, dx}{3+2 n}\\ &=-\frac {2 a^2 \cos (e+f x) \sin ^{1+n}(e+f x)}{f (3+2 n) \sqrt {a+a \sin (e+f x)}}+\frac {\left (a^3 (5+4 n) \cos (e+f x)\right ) \text {Subst}\left (\int \frac {x^n}{\sqrt {a-a x}} \, dx,x,\sin (e+f x)\right )}{f (3+2 n) \sqrt {a-a \sin (e+f x)} \sqrt {a+a \sin (e+f x)}}\\ &=-\frac {2 a^2 (5+4 n) \cos (e+f x) \, _2F_1\left (\frac {1}{2},-n;\frac {3}{2};1-\sin (e+f x)\right )}{f (3+2 n) \sqrt {a+a \sin (e+f x)}}-\frac {2 a^2 \cos (e+f x) \sin ^{1+n}(e+f x)}{f (3+2 n) \sqrt {a+a \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 6 vs. order 5 in
optimal.
time = 6.24, size = 5111, normalized size = 48.22 \begin {gather*} \text {Result too large to show} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.11, size = 0, normalized size = 0.00 \[\int \left (\sin ^{n}\left (f x +e \right )\right ) \left (a +a \sin \left (f x +e \right )\right )^{\frac {3}{2}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a \left (\sin {\left (e + f x \right )} + 1\right )\right )^{\frac {3}{2}} \sin ^{n}{\left (e + f x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\sin \left (e+f\,x\right )}^n\,{\left (a+a\,\sin \left (e+f\,x\right )\right )}^{3/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________